package com.shenghui.enterprise.base.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.shenghui.enterprise.base.entity.BaseUser;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;


/**
 * @Description: 登录服务接口
 * @Author houjh
 * @Email: happyxiaohou@gmail.com
 * @Date: 2020-05-29
 * @Copyright (c) 2020-2022 云南昇晖科技有限公司
 */
public interface ILoginService extends IService<BaseUser> {

    /**
     * 用户登录
     * @param map
     * @param request
     * @param response
     * @return
     */
    Object login(Map map, HttpServletRequest request, HttpServletResponse response);

    /**
     * 退出登录方法
     * @param request
     * @return
     */
    Object loginOut(HttpServletRequest request);

}
